package com.book.bookmanager.mapper;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.book.bookmanager.pojo.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    /**
     * 查询所有
     */
    public List<User> queryAll();
    /**
     * 添加数据
     */
    public void add(User user);
    /**
     * 根据用户名查询
     */
    public User queryByUser(String userName);
    public List<String> getRoleByUserName(String userName);


    void remove(String name);

    void updateByUserName(User user);
}
